<extend name="_layout/main" />
<block name="content">
	<div class="page-content">
		<div class="page-breadcrumbs">
			<ul class="breadcrumb">
				<li>
					<i class="fa fa-home"></i>
					<a href="{:U('dashboard/index')}">系统首页</a>
				</li>
				<li>
					<a href="{:U('manager/index')}">管理中心</a>
				</li>
				<li class="active">后台用户列表</li>
			</ul>
		</div>
		<div class="page-body">
			<div class="row">
				<div class="col-xs-12 col-md-12">
					<div class="widget">
						<div class="widget-header bordered-bottom bordered-blue">
							<span class="widget-caption">管理员列表</span>
						</div>
						<div class="widget-body">
							<div class="text-align-right margin-bottom-10">
                            		<a href="{:U('manager/add')}" class="btn btn-danger ajax-load" ><i class="fa fa-plus"></i>添加用户</a>                            		
                            	</div>
							<table class="table table-bordered table-hover">
								<thead>
									<tr>
										<th class="text-center">ID</th>
										<th class="text-center">用户名</th>
										<th class="text-center">用户组</th>
										<th class="text-center">登陆时间</th>
										<th class="text-center">登陆IP</th>
										<th class="text-center">登陆次数</th>
										<th class="text-center" width="200">操作</th>
									</tr>
								</thead>

								<tbody>
									<volist name="result" id="val">
										<tr>
											<td class="text-center">{$val.id}</td>
											<td class="text-center">{$val.username}</td>
											<td class="text-center">{$val.group_name}</td>
											<td class="text-center">{:format_time($val['login_time'])}</td>
											<td class="text-center">{$val.login_ip}</td>
											<td class="text-center">{$val.login_count}</td>
											<td class="text-center">
												<a href="{:U('manager/edit',['id'=>$val['id']])}" class="btn btn-default btn-xs ajax-load"><i class="fa fa-edit"></i>编辑</a>
												<a href="{:U('manager/delete',['id'=>$val['id']])}" data-confirm="确定删除该用户？" class="btn btn-default btn-xs"><i class="fa fa-trash-o"></i>删除</a>
											</td>
										</tr>
									</volist>
								</tbody>
							</table>
							<div class="row DTTTFooter">
								<div class="col-sm-6">
									<div class="dataTables_info" id="simpledatatable_info" role="status" aria-live="polite">

									</div>
								</div>
								<div class="col-sm-6">
									<div class="dataTables_paginate paging_bootstrap" id="simpledatatable_paginate">
										{$page}
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</block>

<block name="footer">
	<script src="/Public/assets/js/validation/bootstrapValidator.js" type="text/javascript" charset="utf-8"></script>

</block>